<!DOCTYPE html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1";charset=utf-8" />
<title>大乐透数据分析</title>
<!-- 折线图调用的js文件 -->
<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="js/highcharts.js"></script>
</head>
<body>
<form name="display" method="post" action="<?php echo htmlspecialchars($_SERVER['PHP_SELF']); ?>">
<?php

/* 引用函数库 */
require_once 'configure.php';

$show_line_div="<div id='container' style='min-width:1600px;height:500px';overflow:hidden;text-align:center';margin:0 auto; ></div>";
echo $show_line_div;
echo show_area_select();
echo show_issue_area_select1();
echo show_issue_area_select2();
echo show_submit();



if($_SERVER['REQUEST_METHOD'] == "POST"){
	$show_object_array=array($_POST['select_ball']);
	$show_line_chart=show_area_line($show_object_array,$_POST['show_issue_area1'],$_POST['show_issue_area2']);
	echo $show_line_chart;
}
else{
	/*载入页面时，默认提供的数据*/
	$show_object_array=array("red_one","red_five");
	//$show_object_array=array("red_one","red_two","red_three","red_four","red_five");
	$show_line_chart=show_area_line($show_object_array);
	echo $show_line_chart;	
}


?>
</form>
</body>
</html>